<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:71:"D:\east_environmental\public/../application/index\view\login\login.html";i:1546865478;s:61:"D:\east_environmental\application\index\view\common\menu.html";i:1546865478;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <script src="/index/js/jquery-1.9.1.min.js"></script>
    <script src="/index/js/layer.js"></script>
    <!---->
    <link rel="stylesheet" href="/index/libs/swiper3/css/swiper.min.css">
    <link rel="stylesheet" href="/index/css/common.css">
    <link rel="stylesheet" href="/index/css/login.css">
    <!---->
    <script src="/index/libs/swiper3/js/swiper.min.js"></script>

    <script src="/index/js/common.js"></script>
    <!--<script src="./js/index.js"></script>-->
</head>
<body>
<div class="wrap">
    <header>
        <!--<div class="nav wrap-w clearfix">-->
            <!--<div class="fl nav-left">-->
                <!--<a href="" class="logo">-->
                    <!--<img src="/index/images/logo_04.png" alt="">-->
                <!--</a>-->

            <!--</div>-->

        <!--</div>-->
            <div class="nav wrap-w clearfix">
        <div class="fl nav-left">
            <a href="<?php echo url('index/index'); ?>" class="logo">
                <img src="/index/images/logo_04.png" alt="">
            </a>
            <a href="javascript:void(0)" class="city-select">
                <dl>
                    <dt>
                        <em class="city">全国</em><img src="/index/images/logo_06.png" alt="">
                    </dt>
                    <dd class="clearfix">
                        <p><span>全国</span></p>
                        <p class="active"><span>福建省</span></p>
                        <?php foreach($province as $k=>$v): ?>
                        <p><span><?php echo $v['province']; ?></span></p>
                        <?php endforeach; ?>
                    </dd>
                </dl>

            </a>
            <a href="<?php echo url('index/index'); ?>" <?php if((isset($active))): if(($active == 1)): ?>class="active" <?php endif; endif; ?>>首页</a>
            <a href="<?php echo url('index/news_list',['type'=>1]); ?>" <?php if((isset($active))): if(($active == 3)): ?>class="active" <?php endif; endif; ?>>新闻中心</a>
            <a href="<?php echo url('index/activity'); ?>" <?php if((isset($active))): if(($active == 4)): ?>class="active" <?php endif; endif; ?>>促销活动</a>
            <a href="<?php echo url('index/public_info'); ?>" <?php if((isset($active))): if(($active == 2)): ?>class="active" <?php endif; endif; ?>>信息公开</a>
        </div>
        <div class="fr nav-right clearfix">
            <dl class="user">
                <dt>欢迎您！
                    <?php if((isset($user))): if((isset($user['realname']) && !empty($user['realname']))): ?>
                              <?php echo $user['user_name']; else: ?>
                    &nbsp;&nbsp;        <?php echo $user['user_name']; endif; else: ?>
                    <a href="<?php echo url('login/login'); ?>">登录</a>/<a href="<?php echo url('login/register'); ?>">注册</a>
                    <?php endif; ?>
                </dt>
                <?php if((isset($user))): ?>
                <div class="dd">
                    <dd>
                        <a href="<?php echo url('user/index',['type'=>2]); ?>"><img class="img-origin" src="/index/list0.png" alt=""><img class="img-active" src="/index/list1.png" alt="">我的订单</a>
                    </dd>
                    <!--<dd>-->
                        <!--<a href=""><img class="img-origin" src="/index/msg0.png" alt=""><img class="img-active" src="/index/msg1.png" alt="">我的邮件</a>-->
                    <!--</dd>-->
                    <dd>
                        <a href="<?php echo url('user/index'); ?>"><img class="img-origin" src="/index/set0.png" alt=""><img class="img-active" src="/index/set1.png" alt="">个人中心</a>
                    </dd>
                    <dd>
                        <a href="<?php echo url('login/login_out'); ?>"><img class="img-origin" src="/index/out1.png" alt=""><img class="img-active" src="/index/out0.png" alt="">退出登录</a>
                    </dd>
                </div>
                <?php endif; ?>
            </dl>
            <dl class="messages">
                <a href="<?php echo url('user/index',['type'=>3]); ?>"> <dt><img src="/index/images/img_06.png" alt=""></dt></a>
                <!--<div class="dd">-->
                    <!--<?php foreach($notice as $k=>$v): ?>-->

                    <!--<dd>-->
                        <!--<a href="">-->
                                <!--<?php if(($v['type'] == 1 )): ?>-->
                                <!--<span class="blue">【通知】</span>-->
                                <!--<?php endif; ?>-->
                                 <!--<?php if(($v['type'] == 2 )): ?>-->
                                <!--<span class="green">【公告】</span>-->
                                <!--<?php endif; ?>-->
                                 <!--<?php echo $v['system_title']; ?>-->
                                <!--<?php if(($k < 3)): ?>-->
                                 <!--<span class="dots"></span>-->
                                <!--<?php endif; ?>-->
                        <!--</a>-->
                    <!--</dd>-->
                    <!--<?php endforeach; ?>-->
                    <!--<dd class="more">-->
                        <!--<a href="">查看更多 ></a>-->
                    <!--</dd>-->
                <!--</div>-->

            </dl>
            <dl class="notice">
                <dt><img src="/index/images/img_72_06_03.png" alt=""><span>关注我们</span></dt>
                <div class="dd clearfix">
                    <h1>扫一扫关注我们</h1>
                    <dd class="fl">
                        <img src="/index/images/img_61.png" alt="">
                        <p>微信公众号“9999”</p>

                    </dd>
                    <dd class="fr">
                        <img src="/index/images/img_05.jpg" alt="">
                        <p>新浪微博“东方环保”</p>
                    </dd>

                </div>


            </dl>
        </div>
    </div>





    </header>
    <div class="container container-login">
        <div class="wrap-w clearfix">
            <form action="" class="fr">
                <h1>用户登录</h1>
                <input type="text" placeholder="请输入手机号" class="user-name">
                <input type="password" placeholder="请输入密码" class="password">
                <button  type="button" class="submit_button" onClick="submitAction();return false;">登录</button>
                <p class="clearfix">
                    <a href="<?php echo url('login/register'); ?>" class="fl">注册账号</a>
                    <a href="" class="fr">忘记密码？</a>
                </p>
            </form>
        </div>
    </div>
    <footer>
        <div class="wrap-w">
    <p>Copyright @ 2012 - 2018  福建亿利环境技术有限公司版权所有 ICP备：*********号</p>
        <p>地址：福建省晋江市安东开发区 &nbsp;&nbsp;|&nbsp;&nbsp; 邮箱：343429898@csmall.com &nbsp;&nbsp;|&nbsp;&nbsp; <img src="/index/images/phone_03.png" alt=""> 400-222-8888</p>
        </div>
</footer>
</div>
<script src="/index/common/layui/layui.js"></script>
<script>
    function submitAction() {
        layui.use(['layer'], function(){
            var layer = layui.layer;
            var mobile = $('.user-name').val();
            var password = $('.password').val();
            if(mobile.length == 0){
                layer.msg('请填写手机号');
                return false;
            }
            if(password.length == 0){
                layer.msg('请填写密码');
                return false;
            }
            $.ajax({
                type:'post',
                url:'/index/login/login_in',
                dataType:'json',
                data:{'mobile':mobile,'password':password},
                success:function (data) {
                    if(data.code == 200){
                        layer.msg(data.msg);
                        window.location.href='/index/index/index';
                    }else{
                        layer.msg(data.msg);
                    }
                }
            });


        });
    }

</script>